﻿using System;
namespace WooEngine.Utility.Security.Base
{
    public class Base64zh
    {
        public static string decode(string s)
        {
            return System.Text.Encoding.Default.GetString(Convert.FromBase64String(s));
        }

        public static string encode(string s)
        {
            return Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(s));
        }
    }
}